Add a special size for drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
authorOwen Taylor <otaylor@redhat.com>
Mon, 25 Jun 2001 01:51:58 +0000 (01:51 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Mon, 25 Jun 2001 01:51:58 +0000 (01:51 +0000)
commit1988e13749e613b4b378be1a6cb4bad7f17bebb0
tree0f5775f3f599586a2885149f73c9ec43797bb77a
parent24a325c67a12ad928180e96aad8483837e26125f
Add a special size for drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)

Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)

* gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
with un'reffing wrong list reported by Jeff Franks.

* gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.

* gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
for the default icon. Remove inline XPM.

* gtk/gtkstock.h gtk/gtkiconfactory.c:
Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
is used for GTK_STOCK_DND, but it is a bit too small.)

* gtk/stock-icons/stock_dnd_multiple.png
gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.

* gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
TRUE when starting a drag. In other cases, we are
just observing. (#52995)

* gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add
function to set the icon for a drag from a GdkPixbuf
or stock ID.

* gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}):
Likewise, for drag sources.

* gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
(Now should be done using the stock system.)
22 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
docs/reference/ChangeLog
docs/reference/gtk/gtk-sections.txt
docs/reference/gtk/tmpl/gtk-unused.sgml
docs/reference/gtk/tmpl/gtkdnd.sgml
docs/reference/gtk/tmpl/gtkiconfactory.sgml
docs/reference/gtk/tmpl/gtktextview.sgml
gtk/gtkdnd.c
gtk/gtkdnd.h
gtk/gtkenums.h
gtk/gtkiconfactory.c
gtk/gtkmain.c
gtk/gtkstock.h
gtk/stock-icons/Makefile.am
gtk/stock-icons/stock_dnd_multiple.png [new file with mode: 0644]
gtk/stock-icons/stock_dnd_multiple_32.png [new file with mode: 0644]